import { Record } from 'immutable';

const TodoProto = {
  id: 0,
  completed: false,
  editing: false,
  title: ''
}

export class Todo extends Record(TodoProto) {
  id: number
  completed: boolean
  editing: boolean
  title: string

  constructor(props) {
    super(props)
  }
}
